package vip.ifmm.lehouse.api.gateway.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import javax.annotation.Resource;
import java.util.List;

/**
 * web配置类
 *
 * @author Red
 * email: 1318944013@qq.com
 * date: 2019/6/16 20:21
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
	
	@Resource
	UserArgumentResolver userArgumentResolver;

	// 注册参数拦截器
	@Override
	public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
		argumentResolvers.add(userArgumentResolver);
	}

}
